/*
 * @Author: yumao 123456
 * @Date: 2023-09-06 15:26:01
 * @LastEditors: yumao 123456
 * @LastEditTime: 2023-09-09 15:44:36
 * @FilePath: \gm公司数据大屏\src\api\cockpit.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Qs from 'qs'
import request from '@/utils/request'

//左侧接口
export function screenLeftData(params) {
  return request({
    url: '/screenForeignTrade/screenLeftData',
    headers: {
      'Content-Type': 'application/json'
    },
    method: 'get',
    params,
    paramsSerializer: function(params) {
      return Qs.stringify(params, { arrayFormat: "repeat" });
    },
  })
}
//中间指标和地图数据
export function screenMidData(params) {
    return request({
      url: '/screenForeignTrade/screenMidData',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
}
  
//右侧内贸数据
export function screenRightData(params) {
    return request({
      url: '/screenForeignTrade/screenRightData',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }